const router = require('koa-router')()
const {createComment,findComment,deleteComment,searchComment}=require("../controller/comment_controller")
router.prefix('/comment')
router.post('/', createComment)
router.get("/", findComment)
router.delete("/:id", deleteComment)
router.post("/search",searchComment)
module.exports=router